using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetA8KeyResp : GeneratedMessageLite<GetA8KeyResp, GetA8KeyResp.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetA8KeyResp, GetA8KeyResp.Builder>
		{
			private bool resultIsReadOnly;
			private GetA8KeyResp result;
			protected override GetA8KeyResp.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetA8KeyResp MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetA8KeyResp DefaultInstanceForType
			{
				get
				{
					return GetA8KeyResp.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public string FullURL
			{
				get
				{
					return this.result.FullURL;
				}
				set
				{
					this.SetFullURL(value);
				}
			}
			public string A8Key
			{
				get
				{
					return this.result.A8Key;
				}
				set
				{
					this.SetA8Key(value);
				}
			}
			public uint ActionCode
			{
				get
				{
					return this.result.ActionCode;
				}
				set
				{
					this.SetActionCode(value);
				}
			}
			public string Title
			{
				get
				{
					return this.result.Title;
				}
				set
				{
					this.SetTitle(value);
				}
			}
			public string Content
			{
				get
				{
					return this.result.Content;
				}
				set
				{
					this.SetContent(value);
				}
			}
			public Builder()
			{
				this.result = GetA8KeyResp.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetA8KeyResp cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetA8KeyResp PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetA8KeyResp other = this.result;
					this.result = new GetA8KeyResp();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetA8KeyResp.Builder Clear()
			{
				this.result = GetA8KeyResp.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetA8KeyResp.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetA8KeyResp.Builder(this.result);
				}
				return new GetA8KeyResp.Builder().MergeFrom(this.result);
			}
			public override GetA8KeyResp BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetA8KeyResp.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetA8KeyResp)
				{
					return this.MergeFrom((GetA8KeyResp)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetA8KeyResp.Builder MergeFrom(GetA8KeyResp other)
			{
				return this;
			}
			public override GetA8KeyResp.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetA8KeyResp.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetA8KeyResp._getA8KeyRespFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetA8KeyResp._getA8KeyRespFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 18u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
						if (num3 == 18u)
						{
							this.result.hasFullURL = input.ReadString(ref this.result.fullURL_);
							continue;
						}
					}
					else
					{
						if (num3 <= 32u)
						{
							if (num3 == 26u)
							{
								this.result.hasA8Key = input.ReadString(ref this.result.a8Key_);
								continue;
							}
							if (num3 == 32u)
							{
								this.result.hasActionCode = input.ReadUInt32(ref this.result.actionCode_);
								continue;
							}
						}
						else
						{
							if (num3 == 42u)
							{
								this.result.hasTitle = input.ReadString(ref this.result.title_);
								continue;
							}
							if (num3 == 50u)
							{
								this.result.hasContent = input.ReadString(ref this.result.content_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public GetA8KeyResp.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public GetA8KeyResp.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public GetA8KeyResp.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public GetA8KeyResp.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public GetA8KeyResp.Builder SetFullURL(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasFullURL = true;
				this.result.fullURL_ = value;
				return this;
			}
			public GetA8KeyResp.Builder ClearFullURL()
			{
				this.PrepareBuilder();
				this.result.hasFullURL = false;
				this.result.fullURL_ = "";
				return this;
			}
			public GetA8KeyResp.Builder SetA8Key(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasA8Key = true;
				this.result.a8Key_ = value;
				return this;
			}
			public GetA8KeyResp.Builder ClearA8Key()
			{
				this.PrepareBuilder();
				this.result.hasA8Key = false;
				this.result.a8Key_ = "";
				return this;
			}
			public GetA8KeyResp.Builder SetActionCode(uint value)
			{
				this.PrepareBuilder();
				this.result.hasActionCode = true;
				this.result.actionCode_ = value;
				return this;
			}
			public GetA8KeyResp.Builder ClearActionCode()
			{
				this.PrepareBuilder();
				this.result.hasActionCode = false;
				this.result.actionCode_ = 0u;
				return this;
			}
			public GetA8KeyResp.Builder SetTitle(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasTitle = true;
				this.result.title_ = value;
				return this;
			}
			public GetA8KeyResp.Builder ClearTitle()
			{
				this.PrepareBuilder();
				this.result.hasTitle = false;
				this.result.title_ = "";
				return this;
			}
			public GetA8KeyResp.Builder SetContent(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasContent = true;
				this.result.content_ = value;
				return this;
			}
			public GetA8KeyResp.Builder ClearContent()
			{
				this.PrepareBuilder();
				this.result.hasContent = false;
				this.result.content_ = "";
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int FullURLFieldNumber = 2;
		public const int A8KeyFieldNumber = 3;
		public const int ActionCodeFieldNumber = 4;
		public const int TitleFieldNumber = 5;
		public const int ContentFieldNumber = 6;
		private static readonly GetA8KeyResp defaultInstance;
		private static readonly string[] _getA8KeyRespFieldNames;
		private static readonly uint[] _getA8KeyRespFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasFullURL;
		private string fullURL_ = "";
		private bool hasA8Key;
		private string a8Key_ = "";
		private bool hasActionCode;
		private uint actionCode_;
		private bool hasTitle;
		private string title_ = "";
		private bool hasContent;
		private string content_ = "";
		private int memoizedSerializedSize = -1;
		public static GetA8KeyResp DefaultInstance
		{
			get
			{
				return GetA8KeyResp.defaultInstance;
			}
		}
		public override GetA8KeyResp DefaultInstanceForType
		{
			get
			{
				return GetA8KeyResp.DefaultInstance;
			}
		}
		protected override GetA8KeyResp ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public string FullURL
		{
			get
			{
				return this.fullURL_;
			}
		}
		public string A8Key
		{
			get
			{
				return this.a8Key_;
			}
		}
		public uint ActionCode
		{
			get
			{
				return this.actionCode_;
			}
		}
		public string Title
		{
			get
			{
				return this.title_;
			}
		}
		public string Content
		{
			get
			{
				return this.content_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.BaseResponse.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasFullURL)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.FullURL);
				}
				if (this.hasA8Key)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.A8Key);
				}
				if (this.hasActionCode)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.ActionCode);
				}
				if (this.hasTitle)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.Title);
				}
				if (this.hasContent)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.Content);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetA8KeyResp()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getA8KeyRespFieldNames = GetA8KeyResp._getA8KeyRespFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, getA8KeyRespFieldNames[2], this.BaseResponse);
			}
			if (this.hasFullURL)
			{
				output.WriteString(2, getA8KeyRespFieldNames[4], this.FullURL);
			}
			if (this.hasA8Key)
			{
				output.WriteString(3, getA8KeyRespFieldNames[0], this.A8Key);
			}
			if (this.hasActionCode)
			{
				output.WriteUInt32(4, getA8KeyRespFieldNames[1], this.ActionCode);
			}
			if (this.hasTitle)
			{
				output.WriteString(5, getA8KeyRespFieldNames[5], this.Title);
			}
			if (this.hasContent)
			{
				output.WriteString(6, getA8KeyRespFieldNames[3], this.Content);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasFullURL)
			{
				num ^= this.fullURL_.GetHashCode();
			}
			if (this.hasA8Key)
			{
				num ^= this.a8Key_.GetHashCode();
			}
			if (this.hasActionCode)
			{
				num ^= this.actionCode_.GetHashCode();
			}
			if (this.hasTitle)
			{
				num ^= this.title_.GetHashCode();
			}
			if (this.hasContent)
			{
				num ^= this.content_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			GetA8KeyResp getA8KeyResp = value as GetA8KeyResp;
			return getA8KeyResp != null && (this.hasBaseResponse == getA8KeyResp.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(getA8KeyResp.baseResponse_))) && (this.hasFullURL == getA8KeyResp.hasFullURL && (!this.hasFullURL || this.fullURL_.Equals(getA8KeyResp.fullURL_))) && (this.hasA8Key == getA8KeyResp.hasA8Key && (!this.hasA8Key || this.a8Key_.Equals(getA8KeyResp.a8Key_))) && (this.hasActionCode == getA8KeyResp.hasActionCode && (!this.hasActionCode || this.actionCode_.Equals(getA8KeyResp.actionCode_))) && (this.hasTitle == getA8KeyResp.hasTitle && (!this.hasTitle || this.title_.Equals(getA8KeyResp.title_))) && (this.hasContent == getA8KeyResp.hasContent && (!this.hasContent || this.content_.Equals(getA8KeyResp.content_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetA8KeyResp, GetA8KeyResp.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<GetA8KeyResp, GetA8KeyResp.Builder>.PrintField("FullURL", this.hasFullURL, this.fullURL_, writer);
			GeneratedMessageLite<GetA8KeyResp, GetA8KeyResp.Builder>.PrintField("A8Key", this.hasA8Key, this.a8Key_, writer);
			GeneratedMessageLite<GetA8KeyResp, GetA8KeyResp.Builder>.PrintField("ActionCode", this.hasActionCode, this.actionCode_, writer);
			GeneratedMessageLite<GetA8KeyResp, GetA8KeyResp.Builder>.PrintField("Title", this.hasTitle, this.title_, writer);
			GeneratedMessageLite<GetA8KeyResp, GetA8KeyResp.Builder>.PrintField("Content", this.hasContent, this.content_, writer);
		}
		public static GetA8KeyResp ParseFrom(byte[] data)
		{
			return GetA8KeyResp.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetA8KeyResp MakeReadOnly()
		{
			return this;
		}
		public static GetA8KeyResp.Builder CreateBuilder()
		{
			return new GetA8KeyResp.Builder();
		}
		public override GetA8KeyResp.Builder ToBuilder()
		{
			return GetA8KeyResp.CreateBuilder(this);
		}
		public override GetA8KeyResp.Builder CreateBuilderForType()
		{
			return new GetA8KeyResp.Builder();
		}
		public static GetA8KeyResp.Builder CreateBuilder(GetA8KeyResp prototype)
		{
			return new GetA8KeyResp.Builder(prototype);
		}
		static GetA8KeyResp()
		{
			GetA8KeyResp.defaultInstance = new GetA8KeyResp().MakeReadOnly();
			GetA8KeyResp._getA8KeyRespFieldNames = new string[]
			{
				"A8Key",
				"ActionCode",
				"BaseResponse",
				"Content",
				"FullURL",
				"Title"
			};
			GetA8KeyResp._getA8KeyRespFieldTags = new uint[]
			{
				26u,
				32u,
				10u,
				50u,
				18u,
				42u
			};
			object.ReferenceEquals(micromsg.Proto.GetA8KeyResp.Descriptor, null);
		}
	}
}
